﻿<%@ Page Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs"
    Inherits="com.tiyma.web.User.Index" Title="体验码小说网,用户中心" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phContent" runat="server">
    <link href="/style/my.css" rel="stylesheet" type="text/css" />
    <script src="/javascript/ajax.js" type="text/javascript"></script>
    <div class="qn_page">
        <div class="pos">
            <a href="index.aspx">体验码通行证</a> &gt; 我的信息 &gt; <span id="nowNav">登录信息</span></div>
        <div class="stage_side">
            <div class="sidenav">
                <dl class="exp">
                    <dt class="doc"><a onclick="return false" href="#">我的信息</a></dt>
                    <dd>
                        <ul>
                            <li id="default" rel="basic" class="off"><a target="" hidefocus="on" href="/user/index.aspx"
                                rel="/user/index.aspx" class="active">个人信息</a></li>
                            <li rel="info" class="col off"><a target="" hidefocus="on" href="/user/bookcase.aspx" rel="/user/bookcase.aspx"
                                class="">我的书架</a><span class="tab_text"></span></li>
                        </ul>
                    </dd>
                </dl>
            </div>
        </div>
        <form runat="server" id="form1">
        <div class="qn_usercenter_in">
            <div class="frm">
                <div class="ct">
                    <p class="alert" id="pAlert">
                        欢迎来体验码通行证</p>
                    <div class="form">
                        <div id="divUser">
                            <p>
                                <label>
                                    用户</label>
                                <input type="text" maxlength="100" runat="server" disabled="disabled" id="txtUserName"
                                    class="textbox" /></p>
                        </div>
                        <div id="divPwd">
                            <p>
                                <label>
                                    密码</label>
                               <asp:TextBox ID="txtPassword" TextMode="Password" runat="server" CssClass="textbox"></asp:TextBox><label style="width:120px;">不填保持原来密码</label></p>
                        </div>
                        <div id="divMobile">
                            <p>
                                <label>
                                    手机</label>
                                <input type="text" maxlength="100" id="txtPhone" runat="server" class="textbox" />
                            </p>
                        </div>
                        <div id="divEmail">
                            <p>
                                <label>
                                    邮箱</label>
                                <input type="text" maxlength="100" id="txtEmail" runat="server" class="textbox" /></p>
                        </div>
                        <div id="divNick">
                            <p>
                                <label>
                                    昵称</label>
                                <input type="text" maxlength="100" id="txtNickName" runat="server" class="textbox" />
                            </p>
                        </div>
                        <div id="divBirthday">
                            <p>
                                <label>
                                    生日</label>
                                <span class="select">
                                   <asp:DropDownList ID="drpYear" runat="server"></asp:DropDownList>
                                    <span class="st">年</span>
                                  <asp:DropDownList ID="drpMonth" runat="server"></asp:DropDownList>
                                    <span class="st">月</span>
                                    <asp:DropDownList ID="drpDay" runat="server"></asp:DropDownList>
                                    <span class="st">日</span> </span>
                            </p>
                        </div>
                           <div id="div1">
                            <p>
                                <label>
                                    藏书</label>
                                <input type="text" maxlength="100" id="txtBookCount" runat="server" class="textbox" />
                            </p>
                        </div>
                        <div id="divButton">
                            <p class="r">
                                <input type="button" value="确定" class="button" onclick="Update()" />
                                <input type="button" value="取消" class="button" onclick="javascript:window.location.reload();" />
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
         <script>
   var p=$("<%=txtPassword.ClientID %>");
   var phone=$("<%=txtPhone.ClientID %>");
   var email=$("<%=txtEmail.ClientID %>");
   var nickName=$("<%=txtNickName.ClientID %>");
   var y=$("<%=drpYear.ClientID %>");
   var m=$("<%=drpMonth.ClientID %>");
   var d=$("<%=drpDay.ClientID %>");

   
   function Update()
   {
      var script=p.value+"$"+phone.value+"$"+email.value+"$"+nickName.value+"$"+GetSelectValue(y)+"#"+GetSelectValue(m)+"#"+GetSelectValue(d);
      MyAjax.ExcuteScript("updateuser",script,ShowBack);
   }
   
   function ShowBack(result)
    {
          alert(result.value);
    }
   
   function GetSelectValue(obj)
   {
      var value="";
      for(var index=0;index<obj.options.length;index++)
      {
        if(obj.options[index].selected)
        {
            value=obj.options[index].value;
        }
      }
      return value;
   }
   </script>

        </form>
        <div class="fthr">
        </div>
    </div>
  
</asp:Content>
